//
//  ZYButton.m
//  commonProject
//
//  Created by 飞奔的羊 on 16/6/11.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "ZYButton.h"
@interface ZYButton ()


/**
 *  本地存储传进来的字典
 */
@property (nonatomic,strong) NSDictionary *dict;

@end
@implementation ZYButton

+ (instancetype)buttonWithDict:(NSDictionary *)dict
{
	return [[self alloc]initWithButtonDict:dict];
}
- (instancetype)initWithButtonDict:(NSDictionary *)dict
{
	if (self = [super init]) {
		self.dict = dict;
	}
	return self;
}
- (void)setup
{
	[self setTitle:self.dict[@"title"] forState:UIControlStateNormal];
}


@end
